import { DatePicker } from "antd";
import dayjs from "dayjs";

function App() {

  const onChange = (res: string | number | Date | dayjs.Dayjs | null | undefined) => {
    const time =  dayjs(res).format('YYYY-MM-DD')
    console.log(time);
  }


  return(
    <div>
      this is app

      <DatePicker onChange={onChange} />
    </div>
  )
}

export default App;
